package com.neueedu.android;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class WebViewNetActivity extends AppCompatActivity {
    WebView webview = null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_view_net);
        webview = findViewById(R.id.webview);

        WebSettings webSettings = webview.getSettings();
        webSettings.setJavaScriptEnabled(true);//允许js执行

//        webview.setWebChromeClient(new WebChromeClient(){
//
//        });


        webview.loadUrl("https://blog.51cto.com/u_16213324/10141815");


    }
}
